package com.lwq.project.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lwq.project.dao.custom.CustomUser2roleMapper;
import com.lwq.project.model.User2role;
import com.lwq.project.service.User2roleService;

@Service
public class User2roleServiceImpl implements User2roleService {
	
	@Autowired
	private CustomUser2roleMapper customUser2roleMapper;
	public String getRoleIdByUserId(String uId) {
		return customUser2roleMapper.getRoleIdByUserId(uId);
	}
	public int insertUserRole(User2role ur) {
		return customUser2roleMapper.insertSelective(ur);
	}
	public int updateByUid(Map<String, Object> map) {
		return customUser2roleMapper.updateByUid(map);
	}

}
